<!--
 * @Author: Damon Liu
 * @Date: 2024-11-21 00:31:34
 * @LastEditors: Damon Liu
 * @LastEditTime: 2025-04-29 16:52:26
 * @Description: 
-->
<template>
  <div style="height: 100%;">
    <a-config-provider :locale="zhCN">
      <RouterView></RouterView>
    </a-config-provider>
  </div>
</template>

<script setup>
import { reactive, ref, onBeforeMount, onBeforeUnmount } from 'vue';
import { useRouter } from 'vue-router';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';

dayjs.locale('zh-cn');

const router = useRouter();

console.log('👋 This message is being logged by "App.vue", included via Vite');
onBeforeMount(async () => {
  if (window.ipcRenderer) {
    console.log(window.ipcRenderer)
    window.ipcRenderer.onNavigateTo((_name) => {
      router.replace({
        name: _name
      })
    })
  }
})
</script>

<style lang="less"></style>